﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Blog.aspx.vb" Inherits="Blog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">

<p>
    <br />
</p>
<p>
    &nbsp;</p>
    <p>
</p>
<p>
</p>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="SqlDataSource1" AllowSorting="True" 
        HorizontalAlign="Center" Width="636px" style="margin-left: 38px">
    <Columns>
        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
            ReadOnly="True" SortExpression="ID" />
        <asp:BoundField DataField="BlogOwnerPhoto" HeaderText="Photo" 
            SortExpression="BlogOwnerPhoto" />
        <asp:BoundField DataField="Title" HeaderText="Title" 
            SortExpression="Title" />
        <asp:BoundField DataField="Post" HeaderText="Post" 
            SortExpression="Post" />
        <asp:BoundField DataField="DatePosted" HeaderText="DatePosted" 
            SortExpression="DatePosted" />
        <asp:BoundField DataField="BlogOwner" HeaderText="BlogOwner" 
            SortExpression="BlogOwner" />
        
        <asp:HyperLinkField DataNavigateUrlFields="ID" 
            DataNavigateUrlFormatString="BlogDetails.aspx?ID={0}" HeaderText="See Blog" 
            SortExpression="ID" Text="See Blog" />
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
        
        SelectCommand="SELECT [ID], [BlogOwnerPhoto], [Title], [Post], [DatePosted], [BlogOwner] FROM [Blogs]">
</asp:SqlDataSource>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
    <p>
</p>
    <p>
</p>
    <p>
</p>
    <p>
</p>
</asp:Content>



